package cn.tedu.cat.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Baobei {
    private Integer id;
    private String title;//商品名称
    private String content; //商品详情
    private String url;    //图片路径
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Integer sort;  //类型1-5
        /*use cat;
create table baobei(
id int primary key auto_increment,
title varchar(20),
content varchar(50),
url varchar(255),
created timestamp
);*/
    /*
     * alter table cat add Sort int;*/
}
